import request from '@/utils/request'

// 查询评分标准列表
export function listTctype(query) {
  return request({
    url: '/tc/tctype/list',
    method: 'get',
    params: query
  })
}

// 查询评分标准详细
export function getTctype(id) {
  return request({
    url: '/tc/tctype/' + id,
    method: 'get'
  })
}

// 新增评分标准
export function addTctype(data) {
  return request({
    url: '/tc/tctype',
    method: 'post',
    data: data
  })
}

// 修改评分标准
export function updateTctype(data) {
  return request({
    url: '/tc/tctype',
    method: 'put',
    data: data
  })
}

// 删除评分标准
export function delTctype(id) {
  return request({
    url: '/tc/tctype/' + id,
    method: 'delete'
  })
}
